<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>新增满减活动</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">活动名称</label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">开始时间</label>
            <div class="controls">
                <input type="text" name="begindate" class="text input-large time" value="" placeholder="请选择时间" />
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">结束时间</label>
            <div class="controls">
                <input type="text" name="enddate" class="text input-large time" value="" placeholder="请选择时间" />
            </div>
        </div>
        <div class="form-item cf">
            <label class="item-label">活动分级</label>
            <div class="controls">
                <div style="border: #000 1px solid;width: 70%" class='data-table table-striped'>
                    <table >
                        <thead>
                            <tr>
                                <th>条件</th>
                                <th>优惠</th>
                            </tr>
                        </thead> 
                        <tr>
                            <td>订单金额满：<input type="text" class="text input-small" name="account1" value="" placeholder="" >元</td>
                            <td>立减：<input type="text" class="text input-small" name="price1" value="" placeholder="" >元</td>
                        </tr>
                        <tr>
                            <td>订单金额满：<input type="text" class="text input-small" name="account2" value="" placeholder="" >元</td>
                            <td>立减：<input type="text" class="text input-small" name="price2" value="" placeholder="" >元</td>
                        </tr>
                        <tr>
                            <td>订单金额满：<input type="text" class="text input-small" name="account3" value="" placeholder="" >元</td>
                            <td>
                                立送：
                                <select data-form="select2" style="height: 30px; width:250px;" name="specid" >
                                    <option value="0">请选择...</option>
                                    <volist name="data.prolist" id="pl">
                                        <option value="{$pl.specid},{$pl.pid},{$pl.pname}({$pl.specname})">{$pl.pname}({$pl.specname})</option>
                                    </volist>
                                </select>1份
                            </td>
                        </tr> 
                    </table>
                </div>
            </div>
        </div>
        <div class="form-item cf">
            <label class="item-label">是否生效<span class="check-tips">（选择活动是否生效）</span></label>
            <div class="controls">
                <input type="checkbox" name="isNice" checked />活动生效
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    
    <link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
    <php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
    <link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
    <script type="text/javascript">
        highlight_subnav('{:U('Cust/index')}');
        
        $(function(){
            $('.time').datetimepicker({
                format: 'yyyy-mm-dd hh:ii:ss',
                language:"zh-CN",
                minView:2,
                autoclose:true
            });
            showTab();
        });
    </script>
</block>
